package com.example.warehouse_manager.mapper;

import com.example.warehouse_manager.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Yang
* @description 针对表【user_role(用户角色表)】的数据库操作Mapper
* @createDate 2024-03-04 17:37:12
* @Entity generator.domain.UserRole
*/
@Mapper
public interface UserRoleMapper {

    //根据用户id删除用户已分配的角色
    public int removeUserRoleById(Integer userId);

    //添加用户关系
    public int insertUserRole(UserRole userRole);

}
